Skip to main content
PATCH
/
public
/
v1
/
campaign-service
/
campaigns
/
exclusive-banner
/
{campaign-id}
[BETA] Update exclusive banner campaign by ID.
curl --request PATCH \
  --url https://api.topsort.com/public/v1/campaign-service/campaigns/exclusive-banner/{campaign-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "endDate": "2023-11-07T05:31:56Z",
  "exclusivityPercentage": 123,
  "exclusivityPrice": 123,
  "impressionsThreshold": 123,
  "isActive": true,
  "name": "Bola-Bola Ad campaign",
  "startDate": "2023-11-07T05:31:56Z"
}'
{
  "adFormat": "exclusive_banner",
  "bidType": "exclusive",
  "campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "campaignType": "manual",
  "chargeType": "DAILY",
  "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "endDate": "2023-11-07T05:31:56Z",
  "exclusivityPercentage": 123,
  "exclusivityPrice": 123,
  "externalCampaignId": "<string>",
  "impressionsThreshold": 123,
  "isActive": true,
  "isAutoTrigger": false,
  "marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Bola-Bola Ad campaign",
  "startDate": "2023-11-07T05:31:56Z",
  "status": "pending",
  "vendorId": "<string>",
  "walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Path Parameters

campaign-id
string<uuid>
required

The ID of the campaign to be updated.

Body

application/json

The public request body for updating an exclusive banner campaign.

endDate
string<date-time>

When should the campaign stop. Must be greater than start date.

exclusivityPercentage
number

Percentage of auctions the campaign will be exclusive in.

exclusivityPrice
integer

The price to pay daily for the campaign to run.

impressionsThreshold
integer

Impressions allowed for the campaign before it is stopped.

isActive
boolean

Whether the campaign should be activated upon creation.The campaign will start when this is set and the start_date has passed.

name
string

The name of the campaign.

Minimum length: 1
Example:

"Bola-Bola Ad campaign"

startDate
string<date-time>

When should the campaign start. If the start date is in the past, it will be set to the current date.

Response

Successful Response

Model that represents an Exclusive Banner Campaign.

adFormat
enum<string>
required

The ad format of the campaign. Can be exclusive_banner.

Available options:
exclusive_banner
Example:

"exclusive_banner"

campaignId
string<uuid>
required

The ID of the campaign.

campaignType
enum<string>
required

The bidding method for the campaign.

Available options:
manual,
autobidding,
exclusive
chargeType
enum<string>
required

How exclusive campaigns are going to be charged, only daily is allowed.

Available options:
DAILY
exclusivityPrice
integer
required

The price to pay daily for the campaign to run.

marketplaceId
string<uuid>
required

The ID of the marketplace.

name
string
required

The name of the campaign.

Minimum length: 1
Example:

"Bola-Bola Ad campaign"

vendorId
string
required

The marketplace's ID of the vendor.

walletId
string<uuid>
required

The uuid of the wallet to be used with this campaign.

bidType
enum<string>
default:exclusive

The bidding type of the campaign.

Available options:
exclusive
createdBy
string<uuid>

The ID of the user creating the campaign.

endDate
string<date-time>

Date when to stop the campaign, specified in RFC 3339, if not set the campaign will never stop. This date must be greater than the start date and must be in the future. Must include the Timezone definition.

exclusivityPercentage
number

Percentage of auctions the campaign will be exclusive in.

externalCampaignId
string

The external ID of the campaign in the marketplace.

impressionsThreshold
integer

Impressions allowed for the campaign before it is stopped.

isActive
boolean
default:true

Whether the campaign should be activated upon creation.The campaign will start when this is set and the start_date has passed.

isAutoTrigger
boolean
default:false

Whether the campaign is auto-triggered.

startDate
string<date-time>

Date when to start the campaign, specified in RFC 3339, if not set that campaign will start immediately after the campaign creation. Must include the Timezone definition.If the start date is in the past, it will be set to the current date.

status
enum<string>

For an exclusive banner campaign, its initial review status.

Available options:
approved,
pending,
rejected